package net.sourceforge.peertwitter.scamp.messaging;

public enum ScampMessageTypes {
JOIN, JOIN_ACK, FORWARDED_JOIN, HEART_BEAT, HEART_BEAT_ACK, TWEET, RELIABLE_MESSAGE;

	public short type() {
		//XXX: 0 is reserved for javaserialized messages
		return (short)(this.ordinal() + 1);
	}
}
